package com.complaint.service.impl;

import com.complaint.dao.impl.ComplaintDAOImpl;
import com.complaint.pojo.Complaint;
import com.complaint.pojo.User;
import com.complaint.service.ComplaintService;

import java.util.List;

public class ComplaintServiceImpl implements ComplaintService {
    @Override
    public int addComp(Complaint complaint) {
        return new ComplaintDAOImpl().addComp(complaint);
    }

    @Override
    public int statusComp(String id, String status) {
        return new ComplaintDAOImpl().statusComp(id, status);
    }

    @Override
    public int blackComp(String id) {
        return new ComplaintDAOImpl().blackComp(id);
    }

    @Override
    public List<User> recordUser() {
        return new ComplaintDAOImpl().recordUser();
    }
}
